# Copyright (c) 2014 by Michael Zahniser
#
# Endless Sky is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later version.
#
# Endless Sky is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.  See the GNU General Public License for more details.

mission "Cargo Smuggling [0]"
	name "Smuggling to <planet>"
	job
	repeat
	description "Smuggle <cargo> to <destination>. If law enforcement catches you, you will be fined 20,000 credits. A contact at the location will retrieve the cargo. Payment is <payment>."
	cargo "Illegal Cargo" 5 2 .1
		illegal 20000
	to offer
		or
			"reputation: Pirate" > -100
			"combat rating" > 150
	source
		government "Pirate"
	destination
		distance 3 6
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Pirate"
	on complete
		payment 4000 200
		dialog "You find the contact at the edge of the spaceport. Your cargo of <commodity> is removed from your ship and you collect your payment of <payment>."

mission "Cargo Smuggling [1]"
	name "Smuggling to <planet>"
	job
	repeat
	description "Smuggle <cargo> to <destination>. If law enforcement catches you, you will be fined 25,000 credits. A contact at the location will retrieve the cargo. Payment is <payment>."
	cargo "Illegal Cargo" 5 2 .1
		illegal 25000
	to offer
		random < 90
		or
			"reputation: Pirate" > -100
			"combat rating" > 150
	source
		government "Pirate"
	destination
		distance 3 8
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Pirate"
	on complete
		payment 4000 200
		dialog "You find the contact at the edge of the spaceport. Your cargo of <commodity> is removed from your ship and you collect your payment of <payment>."

mission "Cargo Smuggling [2]"
	name "Smuggling to <planet>"
	job
	repeat
	description "Smuggle <cargo> to <destination>. If law enforcement catches you, you will be fined 32,000 credits. A contact at the location will retrieve the cargo. Payment is <payment>."
	cargo "Illegal Cargo" 5 2 .1
		illegal 32000
	to offer
		random < 70
		or
			"reputation: Pirate" > -100
			"combat rating" > 150
	source
		government "Pirate"
	destination
		distance 4 10
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Pirate"
	on complete
		payment 5000 200
		dialog "You find the contact at the edge of the spaceport. Your cargo of <commodity> is removed from your ship and you collect your payment of <payment>."

mission "Cargo Smuggling [3]"
	name "Smuggling to <planet>"
	job
	repeat
	description "Smuggle <cargo> to <destination>. If law enforcement catches you, you will be fined 40,000 credits. A contact at the location will retrieve the cargo. Payment is <payment>."
	cargo "Illegal Cargo" 5 2 .1
		illegal 40000
	to offer
		random < 60
		or
			"reputation: Pirate" > -100
			"combat rating" > 150
	source
		government "Pirate"
	destination
		distance 5 12
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Pirate"
	on complete
		payment 6000 200
		dialog "You find the contact at the edge of the spaceport. Your cargo of <commodity> is removed from your ship and you collect your payment of <payment>."

mission "Drug Running [0]"
	name "Drug run to <planet>"
	job
	repeat
	description "Run <cargo> to <destination>. If law enforcement catches you, you will be fined 37,000 credits. A contact at the location will retrieve the cargo. Payment is <payment>."
	cargo "Illegal Substances" 5 2 .1
		illegal 37000
	to offer
		random < 80
		or
			"reputation: Pirate" > -50
			"combat rating" > 400
	source
		government "Pirate"
	destination
		distance 3 10
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Pirate"
	on complete
		payment 5000 250
		dialog "You find the contact at the edge of the spaceport. Your cargo of <commodity> is removed from your ship and you collect your payment of <payment>."

mission "Drug Running [1]"
	name "Drug run to <planet>"
	job
	repeat
	description "Run <cargo> to <destination>. If law enforcement catches you, you will be fined 46,000 credits. A contact at the location will retrieve the cargo. Payment is <payment>."
	cargo "Illegal Substances" 5 2 .1
		illegal 46000
	to offer
		random < 70
		or
			"reputation: Pirate" > -50
			"combat rating" > 400
	source
		government "Pirate"
	destination
		distance 4 12
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Pirate"
	on complete
		payment 5000 250
		dialog "You find the contact at the edge of the spaceport. Your cargo of <commodity> is removed from your ship and you collect your payment of <payment>."

mission "Drug Running [2]"
	name "Drug run to <planet>"
	job
	repeat
	description "Run <cargo> to <destination>. If law enforcement catches you, you will be fined 55,000 credits. A contact at the location will retrieve the cargo. Payment is <payment>."
	cargo "Illegal Substances" 5 2 .1
		illegal 55000
	to offer
		random < 60
		or
			"reputation: Pirate" > -50
			"combat rating" > 400
	source
		government "Pirate"
	destination
		distance 5 14
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Pirate"
	on complete
		payment 7000 250
		dialog "You find the contact at the edge of the spaceport. Your cargo of <commodity> is removed from your ship and you collect your payment of <payment>."

mission "Drug Running [3]"
	name "Drug run to <planet>"
	job
	repeat
	description "Run <cargo> to <destination>. If law enforcement catches you, you will be fined 65,000 credits. A contact at the location will retrieve the cargo. Payment is <payment>."
	cargo "Illegal Substances" 5 2 .1
		illegal 65000
	to offer
		random < 50
		or
			"reputation: Pirate" > -50
			"combat rating" > 400
	source
		government "Pirate"
	destination
		distance 6 16
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Pirate"
	on complete
		payment 9000 250
		dialog "You find the contact at the edge of the spaceport. Your cargo of <commodity> is removed from your ship and you collect your payment of <payment>."

mission "Bulk Cargo Smuggling [0]"
	name "Bulk smuggling to <planet>"
	job
	repeat
	description "Smuggle <cargo> to <destination>. If law enforcement catches you, you will be fined 47,000 credits. A contact at the location will retrieve the cargo. Payment is <payment>."
	cargo "Illegal Cargo" 25 2 .1
		illegal 47000
	to offer
		random < 70
		or
			"reputation: Pirate" > -50
			"combat rating" > 400
	source
		government "Pirate"
	destination
		distance 3 8
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Pirate"
	on complete
		payment 7000 200
		dialog "You find the contact at the edge of the spaceport. Your cargo of <commodity> is removed from your ship and you collect your payment of <payment>."

mission "Bulk Cargo Smuggling [1]"
	name "Bulk smuggling to <planet>"
	job
	repeat
	description "Smuggle <cargo> to <destination>. If law enforcement catches you, you will be fined 65,000 credits. A contact at the location will retrieve the cargo. Payment is <payment>."
	cargo "Illegal Cargo" 25 2 .1
		illegal 65000
	to offer
		random < 60
		or
			"reputation: Pirate" > -50
			"combat rating" > 400
	source
		government "Pirate"
	destination
		distance 3 12
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Pirate"
	on complete
		payment 10000 200
		dialog "You find the contact at the edge of the spaceport. Your cargo of <commodity> is removed from your ship and you collect your payment of <payment>."

mission "Bulk Cargo Smuggling [2]"
	name "Bulk smuggling to <planet>"
	job
	repeat
	description "Smuggle <cargo> to <destination>. If law enforcement catches you, you will be fined 86,000 credits. A contact at the location will retrieve the cargo. Payment is <payment>."
	cargo "Illegal Cargo" 25 2 .1
		illegal 86000
	to offer
		random < 40
		or
			"reputation: Pirate" > -50
			"combat rating" > 400
	source
		government "Pirate"
	destination
		distance 4 16
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Pirate"
	on complete
		payment 15000 200
		dialog "You find the contact at the edge of the spaceport. Your cargo of <commodity> is removed from your ship and you collect your payment of <payment>."

mission "Bulk Drug Running [0]"
	name "Bulk drug run to <planet>"
	job
	repeat
	description "Run <cargo> to <destination>. If law enforcement catches you, you will be fined 86,000 credits. A contact at the location will retrieve the cargo. Payment is <payment>."
	cargo "Illegal Substances" 25 2 .1
		illegal 86000
	to offer
		random < 50
		or
			"reputation: Pirate" > -25
			"combat rating" > 1100
	source
		government "Pirate"
	destination
		distance 4 12
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Pirate"
	on complete
		payment 10000 250
		dialog "You find the contact at the edge of the spaceport. Your cargo of <commodity> is removed from your ship and you collect your payment of <payment>."

mission "Bulk Drug Running [1]"
	name "Bulk drug run to <planet>"
	job
	repeat
	description "Run <cargo> to <destination>. If law enforcement catches you, you will be fined 100,000 credits. A contact at the location will retrieve the cargo. Payment is <payment>."
	cargo "Illegal Substances" 25 2 .1
		illegal 100000
	to offer
		random < 40
		or
			"reputation: Pirate" > -25
			"combat rating" > 1100
	source
		government "Pirate"
	destination
		distance 5 14
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Pirate"
	on complete
		payment 15000 250
		dialog "You find the contact at the edge of the spaceport. Your cargo of <commodity> is removed from your ship and you collect your payment of <payment>."

mission "Bulk Drug Running [2]"
	name "Bulk drug run to <planet>"
	job
	repeat
	description "Run <cargo> to <destination>. If law enforcement catches you, you will be fined 120,000 credits. A contact at the location will retrieve the cargo. Payment is <payment>."
	cargo "Illegal Substances" 25 2 .1
		illegal 120000
	to offer
		random < 30
		or
			"reputation: Pirate" > -25
			"combat rating" > 1100
	source
		government "Pirate"
	destination
		distance 6 16
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Pirate"
	on complete
		payment 20000 250
		dialog "You find the contact at the edge of the spaceport. Your cargo of <commodity> is removed from your ship and you collect your payment of <payment>."

mission "Stealth Cargo Smuggling (North) [0]"
	name "Highly illegal cargo to <planet>"
	job
	repeat
	infiltrating
	description "Run <cargo> to <destination>. Being scanned will result in a 130,000 credit fine and the cargo will be seized. You will need to land away from the spaceport or else you may get caught. Payment is <payment>."
	cargo "Highly Illegal Cargo" 5 2 .1
		illegal 130000 `After being given a very hefty fine, the illegal cargo is confiscated from your hold. The pirates won't be happy to hear about this.`
		stealth
	to offer
		random < 40
		"reputation: Pirate" > -10
		"combat rating" > 1100
	source
		government "Pirate"
		attributes "north pirate"
	destination
		distance 3 12
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Pirate"
	npc
		distance 3
		personality heroic waiting
		government Republic
		fleet
			names "republic small"
			variant
				"Gunboat"
	npc
		system destination
		distance 1
		personality heroic waiting
		government Republic
		fleet
			names "republic small"
			variant
				"Gunboat"
	npc
		system destination
		personality heroic staying
		government Republic
		fleet
			names "republic small"
			variant
				"Gunboat"
	on complete
		payment 50000 300
		dialog "You find the contact outside of the main city. Your cargo of <commodity> is removed from your ship and you collect your payment of <payment>."

mission "Stealth Cargo Smuggling (North) [1]"
	name "Highly illegal cargo to <planet>"
	job
	repeat
	infiltrating
	description "Run <cargo> to <destination>. Being scanned will result in a 175,000 credit fine and the cargo will be seized. You will need to land away from the spaceport or else you may get caught. Payment is <payment>."
	cargo "Highly Illegal Cargo" 5 2 .1
		illegal 175000 `After being given a very hefty fine, the illegal cargo is confiscated from your hold. The pirates won't be happy to hear about this.`
		stealth
	to offer
		random < 20
		"reputation: Pirate" > -10
		"combat rating" > 1100
	source
		government "Pirate"
		attributes "north pirate"
	destination
		distance 4 14
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Pirate"
	npc
		distance 5
		personality heroic waiting
		government Republic
		fleet
			names "republic small"
			variant
				"Gunboat"
	npc
		distance 4
		personality heroic waiting 
		government Republic
		fleet
			names "republic small"
			variant
				"Gunboat"
	npc
		distance 3
		personality heroic waiting
		government Republic
		fleet
			names "republic small"
			variant
				"Gunboat"
	npc
		system destination
		distance 1
		personality heroic waiting
		government Republic
		fleet
			names "republic small"
			variant
				"Gunboat"
	npc
		system destination
		distance 1
		personality heroic waiting
		government Republic
		fleet
			names "republic small"
			variant
				"Gunboat"
	npc
		system destination
		personality heroic staying
		government Republic
		fleet "Navy Surveillance"
	on complete
		payment 75000 300
		dialog "You find the contact outside of the main city. Your cargo of <commodity> is removed from your ship and you collect your payment of <payment>."

mission "Stealth Cargo Smuggling (Core) [0]"
	name "Highly illegal cargo to <planet>"
	job
	repeat
	infiltrating
	description "Run <cargo> to <destination>. Being scanned will result in a 130,000 credit fine and the cargo will be seized. You will need to land away from the spaceport or else you may get caught. Payment is <payment>."
	cargo "Highly Illegal Cargo" 5 2 .1
		illegal 130000 `After being given a very hefty fine, the illegal cargo is confiscated from your hold. The pirates won't be happy to hear about this.`
		stealth
	to offer
		random < 40
		"reputation: Pirate" > -10
		"combat rating" > 1100
	source
		government "Pirate"
		attributes "core pirate"
	destination
		distance 3 12
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Pirate"
	npc
		distance 3
		personality heroic waiting
		government Syndicate
		fleet
			names "syndicate small"
			variant
				"Quicksilver (Scanner)"
	npc
		system destination
		distance 1
		personality heroic waiting
		government Syndicate
		fleet
			names "syndicate small"
			variant
				"Quicksilver (Scanner)"
	npc
		system destination
		personality heroic staying
		government Syndicate
		fleet
			names "syndicate small"
			variant
				"Quicksilver (Scanner)"
	on complete
		payment 50000 300
		dialog "You find the contact outside of the main city. Your cargo of <commodity> is removed from your ship and you collect your payment of <payment>."

mission "Stealth Cargo Smuggling (Core) [1]"
	name "Highly illegal cargo to <planet>"
	job
	repeat
	infiltrating
	description "Run <cargo> to <destination>. Being scanned will result in a 175,000 credit fine and the cargo will be seized. You will need to land away from the spaceport or else you may get caught. Payment is <payment>."
	cargo "Highly Illegal Cargo" 5 2 .1
		illegal 175000 `After being given a very hefty fine, the illegal cargo is confiscated from your hold. The pirates won't be happy to hear about this.`
		stealth
	to offer
		random < 20
		"reputation: Pirate" > -10
		"combat rating" > 1100
	source
		government "Pirate"
		attributes "core pirate"
	destination
		distance 4 14
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Pirate"
	npc
		distance 5
		personality heroic waiting
		government Syndicate
		fleet
			names "syndicate small"
			variant
				"Quicksilver (Scanner)"
	npc
		distance 4
		personality heroic waiting
		government Syndicate
		fleet
			names "syndicate small"
			variant
				"Quicksilver (Scanner)"
	npc
		distance 3
		personality heroic waiting
		government Syndicate
		fleet
			names "syndicate small"
			variant
				"Quicksilver (Scanner)"
	npc
		system destination
		distance 1
		personality heroic waiting
		government Syndicate
		fleet
			names "syndicate small"
			variant
				"Quicksilver (Scanner)"
	npc
		system destination
		distance 1
		personality heroic waiting
		government Syndicate
		fleet
			names "syndicate small"
			variant
				"Quicksilver (Scanner)"
	npc
		system destination
		personality heroic staying
		government Syndicate
		fleet
			names "syndicate small"
			variant
				"Quicksilver (Scanner)" 2
	on complete
		payment 75000 300
		dialog "You find the contact outside of the main city. Your cargo of <commodity> is removed from your ship and you collect your payment of <payment>."

mission "Stealth Cargo Smuggling (South) [0]"
	name "Highly illegal cargo to <planet>"
	job
	repeat
	infiltrating
	description "Run <cargo> to <destination>. Being scanned will result in a 130,000 credit fine and the cargo will be seized. You will need to land away from the spaceport or else you may get caught. Payment is <payment>."
	cargo "Highly Illegal Cargo" 5 2 .1
		illegal 130000 `After being given a very hefty fine, the illegal cargo is confiscated from your hold. The pirates won't be happy to hear about this.`
		stealth
	to offer
		random < 40
		"reputation: Pirate" > -10
		"combat rating" > 1100
	source
		government "Pirate"
		attributes "south pirate"
	destination
		distance 3 12
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Pirate"
	npc
		distance 3
		personality heroic waiting
		government Militia
		fleet
			names "militia"
			variant
				"Bastion (Scanner)"
	npc
		system destination
		distance 1
		personality heroic waiting
		government Militia
		fleet
			names "militia"
			variant
				"Bastion (Scanner)"
	npc
		system destination
		personality heroic staying
		government Militia
		fleet
			names "militia"
			variant
				"Bastion (Scanner)"
	on complete
		payment 50000 300
		dialog "You find the contact outside of the main city. Your cargo of <commodity> is removed from your ship and you collect your payment of <payment>."

mission "Stealth Cargo Smuggling (South) [1]"
	name "Highly illegal cargo to <planet>"
	job
	repeat
	infiltrating
	description "Run <cargo> to <destination>. Being scanned will result in a 175,000 credit fine and the cargo will be seized. You will need to land away from the spaceport or else you may get caught. Payment is <payment>."
	cargo "Highly Illegal Cargo" 5 2 .1
		illegal 175000 `After being given a very hefty fine, the illegal cargo is confiscated from your hold. The pirates won't be happy to hear about this.`
		stealth
	to offer
		random < 20
		"reputation: Pirate" > -10
		"combat rating" > 1100
	source
		government "Pirate"
		attributes "south pirate"
	destination
		distance 4 14
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Pirate"
	npc
		distance 5
		personality heroic waiting
		government Militia
		fleet
			names "militia"
			variant
				"Bastion (Scanner)"
	npc
		distance 4
		personality heroic waiting
		government Militia
		fleet
			names "militia"
			variant
				"Bastion (Scanner)"
	npc
		distance 3
		personality heroic waiting
		government Militia
		fleet
			names "militia"
			variant
				"Bastion (Scanner)"
	npc
		system destination
		distance 1
		personality heroic waiting
		government Militia
		fleet
			names "militia"
			variant
				"Bastion (Scanner)"
	npc
		system destination
		distance 1
		personality heroic waiting
		government Militia
		fleet
			names "militia"
			variant
				"Bastion (Scanner)"
	npc
		system destination
		personality heroic staying
		government Militia
		fleet
			names "militia"
			variant
				"Bastion (Scanner)" 2
	on complete
		payment 75000 300
		dialog "You find the contact outside of the main city. Your cargo of <commodity> is removed from your ship and you collect your payment of <payment>."

mission "Stealth Drug Running (North) [0]"
	name "Highly illegal drugs to <planet>"
	job
	repeat
	infiltrating
	description "Run <cargo> to <destination>. Being scanned will result in a 175,000 credit fine and the cargo will be seized. You will need to land away from the spaceport or else you may get caught. Payment is <payment>."
	cargo "Highly Illegal Substances" 5 2 .1
		illegal 175000 `After being given a very hefty fine, the illegal cargo is confiscated from your hold. The pirates won't be happy to hear about this.`
		stealth
	to offer
		random < 30
		"reputation: Pirate" > 0
		"combat rating" > 1100
	source
		government "Pirate"
		attributes "north pirate"
	destination
		distance 3 12
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Pirate"
	npc
		distance 3
		personality heroic waiting
		government Republic
		fleet
			names "republic small"
			variant
				"Gunboat"
	npc
		system destination
		distance 1
		personality heroic waiting
		government Republic
		fleet
			names "republic small"
			variant
				"Gunboat"
	npc
		system destination
		personality heroic staying
		government Republic
		fleet
			names "republic small"
			variant
				"Gunboat"
	on complete
		payment 75000 375
		dialog "You find the contact outside of the main city. Your cargo of <commodity> is removed from your ship and you collect your payment of <payment>."

mission "Stealth Drug Running (North) [1]"
	name "Highly illegal drugs to <planet>"
	job
	repeat
	infiltrating
	description "Run <cargo> to <destination>. Being scanned will result in a 250,000 credit fine and the cargo will be seized. You will need to land away from the spaceport or else you may get caught. Payment is <payment>."
	cargo "Highly Illegal Substances" 5 2 .1
		illegal 250000 `After being given a very hefty fine, the illegal cargo is confiscated from your hold. The pirates won't be happy to hear about this.`
		stealth
	to offer
		random < 15
		"reputation: Pirate" > 0
		"combat rating" > 1100
	source
		government "Pirate"
		attributes "north pirate"
	destination
		distance 4 14
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Pirate"
	npc
		distance 5
		personality heroic waiting
		government Republic
		fleet
			names "republic small"
			variant
				"Gunboat"
	npc
		distance 4
		personality heroic waiting
		government Republic
		fleet
			names "republic small"
			variant
				"Gunboat"
	npc
		distance 3
		personality heroic waiting
		government Republic
		fleet
			names "republic small"
			variant
				"Gunboat"
	npc
		system destination
		distance 1
		personality heroic waiting
		government Republic
		fleet
			names "republic small"
			variant
				"Gunboat"
	npc
		system destination
		distance 1
		personality heroic waiting
		government Republic
		fleet
			names "republic small"
			variant
				"Gunboat"
	npc
		system destination
		personality heroic staying
		government Republic
		fleet "Navy Surveillance"
	on complete
		payment 100000 375
		dialog "You find the contact outside of the main city. Your cargo of <commodity> is removed from your ship and you collect your payment of <payment>."

mission "Stealth Drug Running (Core) [0]"
	name "Highly illegal drugs to <planet>"
	job
	repeat
	infiltrating
	description "Run <cargo> to <destination>. Being scanned will result in a 175,000 credit fine and the cargo will be seized. You will need to land away from the spaceport or else you may get caught. Payment is <payment>."
	cargo "Highly Illegal Substances" 5 2 .1
		illegal 175000 `After being given a very hefty fine, the illegal cargo is confiscated from your hold. The pirates won't be happy to hear about this.`
		stealth
	to offer
		random < 30
		"reputation: Pirate" > 0
		"combat rating" > 1100
	source
		government "Pirate"
		attributes "core pirate"
	destination
		distance 3 12
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Pirate"
	npc
		distance 3
		personality heroic waiting
		government Syndicate
		fleet
			names "syndicate small"
			variant
				"Quicksilver (Scanner)"
	npc
		system destination
		distance 1
		personality heroic waiting
		government Syndicate
		fleet
			names "syndicate small"
			variant
				"Quicksilver (Scanner)"
	npc
		system destination
		personality heroic staying
		government Syndicate
		fleet
			names "syndicate small"
			variant
				"Quicksilver (Scanner)"
	on complete
		payment 75000 375
		dialog "You find the contact outside of the main city. Your cargo of <commodity> is removed from your ship and you collect your payment of <payment>."

mission "Stealth Drug Running (Core) [1]"
	name "Highly illegal drugs to <planet>"
	job
	repeat
	infiltrating
	description "Run <cargo> to <destination>. Being scanned will result in a 250,000 credit fine and the cargo will be seized. You will need to land away from the spaceport or else you may get caught. Payment is <payment>."
	cargo "Highly Illegal Substances" 5 2 .1
		illegal 250000 `After being given a very hefty fine, the illegal cargo is confiscated from your hold. The pirates won't be happy to hear about this.`
		stealth
	to offer
		random < 15
		"reputation: Pirate" > 0
		"combat rating" > 1100
	source
		government "Pirate"
		attributes "core pirate"
	destination
		distance 4 14
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Pirate"
	npc
		distance 5
		personality heroic waiting
		government Syndicate
		fleet
			names "syndicate small"
			variant
				"Quicksilver (Scanner)"
	npc
		distance 4
		personality heroic waiting
		government Syndicate
		fleet
			names "syndicate small"
			variant
				"Quicksilver (Scanner)"
	npc
		distance 3
		personality heroic waiting
		government Syndicate
		fleet
			names "syndicate small"
			variant
				"Quicksilver (Scanner)"
	npc
		system destination
		distance 1
		personality heroic waiting
		government Syndicate
		fleet
			names "syndicate small"
			variant
				"Quicksilver (Scanner)"
	npc
		system destination
		distance 1
		personality heroic waiting
		government Syndicate
		fleet
			names "syndicate small"
			variant
				"Quicksilver (Scanner)"
	npc
		system destination
		personality heroic staying
		government Syndicate
		fleet
			names "syndicate small"
			variant
				"Quicksilver (Scanner)" 2
	on complete
		payment 100000 375
		dialog "You find the contact outside of the main city. Your cargo of <commodity> is removed from your ship and you collect your payment of <payment>."

mission "Stealth Drug Running (South) [0]"
	name "Highly illegal drugs to <planet>"
	job
	repeat
	infiltrating
	description "Run <cargo> to <destination>. Being scanned will result in a 175,000 credit fine and the cargo will be seized. You will need to land away from the spaceport or else you may get caught. Payment is <payment>."
	cargo "Highly Illegal Substances" 5 2 .1
		illegal 175000 `After being given a very hefty fine, the illegal cargo is confiscated from your hold. The pirates won't be happy to hear about this.`
		stealth
	to offer
		random < 30
		"reputation: Pirate" > 0
		"combat rating" > 1100
	source
		government "Pirate"
		attributes "south pirate"
	destination
		distance 3 12
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Pirate"
	npc
		distance 3
		personality heroic waiting
		government Militia
		fleet
			names "militia"
			variant
				"Bastion (Scanner)"
	npc
		system destination
		distance 1
		personality heroic waiting
		government Militia
		fleet
			names "militia"
			variant
				"Bastion (Scanner)"
	npc
		system destination
		personality heroic staying
		government Militia
		fleet
			names "militia"
			variant
				"Bastion (Scanner)"
	on complete
		payment 75000 375
		dialog "You find the contact outside of the main city. Your cargo of <commodity> is removed from your ship and you collect your payment of <payment>."

mission "Stealth Drug Running (South) [1]"
	name "Highly illegal drugs to <planet>"
	job
	repeat
	infiltrating
	description "Run <cargo> to <destination>. Being scanned will result in a 250,000 credit fine and the cargo will be seized. You will need to land away from the spaceport or else you may get caught. Payment is <payment>."
	cargo "Highly Illegal Substances" 5 2 .1
		illegal 250000 `After being given a very hefty fine, the illegal cargo is confiscated from your hold. The pirates won't be happy to hear about this.`
		stealth
	to offer
		random < 15
		"reputation: Pirate" > 0
		"combat rating" > 1100
	source
		government "Pirate"
		attributes "south pirate"
	destination
		distance 4 14
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Pirate"
	npc
		distance 5
		personality heroic waiting
		government Militia
		fleet
			names "militia"
			variant
				"Bastion (Scanner)"
	npc
		distance 4
		personality heroic waiting
		government Militia
		fleet
			names "militia"
			variant
				"Bastion (Scanner)"
	npc
		distance 3
		personality heroic waiting
		government Militia
		fleet
			names "militia"
			variant
				"Bastion (Scanner)"
	npc
		system destination
		distance 1
		personality heroic waiting
		government Militia
		fleet
			names "militia"
			variant
				"Bastion (Scanner)"
	npc
		system destination
		distance 1
		personality heroic waiting
		government Militia
		fleet
			names "militia"
			variant
				"Bastion (Scanner)"
	npc
		system destination
		personality heroic staying
		government Militia
		fleet
			names "militia"
			variant
				"Bastion (Scanner)" 2
	on complete
		payment 100000 375
		dialog "You find the contact outside of the main city. Your cargo of <commodity> is removed from your ship and you collect your payment of <payment>."

mission "Wanted Passenger [0]"
	name "Wanted individual to <planet>"
	job
	repeat
	description "This wanted individual wishes to reach <destination> without being caught by local law enforcement. They also wish to bring with them <cargo>. Payment is <payment>."
	passengers 1
	cargo "battle trophies" 1
		illegal 50000 `Upon scanning your vessel, law enforcement notice the criminal that you have on board. Entering your ship to detain them, they find the criminal in the corner of one of the rooms of your ship, clutching their battle trohpies and screaming "you'll never take them from me!" After a short confrontation, they carry the criminal out and leave you with a small fine.`
		stealth
	to offer
		or
			"reputation: Pirate" > -100
			"combat rating" > 400
	source
		government "Pirate"
	destination
		distance 2 10
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment 30000 300
		dialog "Your <passengers> insists that you land on the edge of the spaceport to avoid being seen. After you land, they pay you <payment> before quickly grabbing their things and leaving your ship."

mission "Wanted Passengers [1]"
	name "Wanted individuals to <planet>"
	job
	repeat
	description "These <bunks> wanted individuals wish to reach <destination> without being caught by local law enforcement. They also wish to bring with them <cargo>. Payment is <payment>."
	passengers 2 10 .9
	cargo "credit chips" 1
		illegal 75000 `Upon scanning your vessel, law enforcement notice the criminals that you have on board. Entering your ship to detain them, they find the criminals busy scooping their credits into the airlock, hoping that no one can have them. The law enforcement quickly detain the criminals and carry them off along with the rest of the credits, leaving you with a moderately sized fine.`
		stealth
	to offer
		random < 75
		"reputation: Pirate" > -50
		"combat rating" > 1100
	source
		government "Pirate"
	destination
		distance 2 10
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment 20000 300
		dialog "Your <passengers> insist that you land on the edge of the spaceport to avoid being seen. After you land, they pay you <payment> before quickly grabbing their things and leaving your ship."
	
mission "Wanted Passengers [2]"
	name "Wanted individuals to <planet>"
	job
	repeat
	description "These <bunks> wanted individuals wish to reach <destination> without being caught by local law enforcement. They also wish to bring with them <cargo>. Payment is <payment>."
	passengers 2 10 .9
	cargo "customized weapons" 1
		illegal 75000 `Upon scanning your vessel, law enforcement notice the criminals that you have on board. Entering your ship to detain them, the criminals begin firing down the hallways with their customized weapons. Immediately met with tear gas, the criminals did not put up too much of a fight. The law enforcement carry the criminals out and leave you with a moderate fine and a few laser marks in the halls of your ship.`
		stealth
	to offer
		random < 50
		"reputation: Pirate" > -50
		"combat rating" > 1100
	source
		government "Pirate"
	destination
		distance 2 10
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment 20000 300
		dialog "Your <passengers> insist that you land on the edge of the spaceport to avoid being seen. After you land, they pay you <payment> before quickly grabbing their things and leaving your ship."

mission "Wanted Passengers [3]"
	name "Wanted individuals to <planet>"
	job
	repeat
	description "These <bunks> wanted individuals wish to reach <destination> without being caught by local law enforcement. They also wish to bring with them <cargo>. Payment is <payment>."
	passengers 2 10 .9
	cargo "aged wine" 1
		illegal 75000 `Upon scanning your vessel, law enforcement notice the criminals that you have on board. Entering your ship to detain them, they find them all passed out in their bunks rooms, having drank too much of the wine that they had brought with them. After carrying the criminals out, they give you a moderate fine and leave.`
		stealth
	to offer
		random < 25
		"reputation: Pirate" > -50
		"combat rating" > 1100
	source
		government "Pirate"
	destination
		distance 2 10
		government "Republic" "Free Worlds" "Syndicate" "Neutral"
	on complete
		payment 20000 300
		dialog "Your <passengers> insist that you land on the edge of the spaceport to avoid being seen. After you land, they pay you <payment> before quickly grabbing their things and leaving your ship."

mission "Highly Wanted Passenger (North)"
	name "Galactic criminal to <planet>"
	job
	repeat
	infiltrating
	description "This criminal is wanted by every law enforcement agency in the galaxy and needs safe transport to <destination> with their <cargo>. The payment is high at an amazing <payment>, but transporting such a person could lead to trouble."
	passengers 1
	cargo "stolen navy secrets" 1
		illegal 300000 `Law enforcement rush their way onto your ship through the airlocks, suited head to toe in armor and armed to the teeth. Your passenger is quickly made to surrender and is hauled off in cuffs. The officers consider detaining you as well, but eventually decide to only fine you to reduce the trouble they have to go through.`
		stealth
	to offer
		random < 15
		"reputation: Pirate" > 10
		"combat rating" > 3000
	source
		government "Pirate"
		attributes "north pirate"
	destination
		distance 4 14
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Pirate"
	npc
		personality heroic waiting
		government Republic
		fleet
			names "republic small"
			variant
				"Gunboat"
	npc
		distance 5
		personality heroic waiting
		government Republic
		fleet
			names "republic small"
			variant
				"Gunboat"
	npc
		distance 4
		personality heroic waiting
		government Republic
		fleet
			names "republic small"
			variant
				"Gunboat"
	npc
		distance 3
		personality heroic waiting
		government Republic
		fleet
			names "republic small"
			variant
				"Gunboat"
	npc
		system destination
		distance 1
		personality heroic waiting
		government Republic
		fleet
			names "republic small"
			variant
				"Gunboat"
	npc
		system destination
		distance 1
		personality heroic waiting
		government Republic
		fleet
			names "republic small"
			variant
				"Gunboat"
	npc
		system destination
		personality heroic staying
		government Republic
		fleet "Navy Surveillance"
	on complete
		payment 200000 1000
		dialog "You land outside of the main city to avoid any chances of your passenger being seen. They grab their things and make their way off of your ship after paying you <payment>."

mission "Highly Wanted Passenger (Core)"
	name "Galactic criminal to <planet>"
	job
	repeat
	infiltrating
	description "This criminal is wanted by every law enforcement agency in the galaxy and needs safe transport to <destination> with their <cargo>. The payment is high at an amazing <payment>, but transporting such a person could lead to trouble."
	passengers 1
	cargo "stolen banking records" 1
		illegal 300000 `Law enforcement rush their way onto your ship through the airlocks, suited head to toe in armor and armed to the teeth. Your passenger is quickly made to surrender and is hauled off in cuffs. The officers consider detaining you as well, but eventually decide to only fine you to reduce the trouble they have to go through.`
		stealth
	to offer
		random < 15
		"reputation: Pirate" > 10
		"combat rating" > 3000
	source
		government "Pirate"
		attributes "core pirate"
	destination
		distance 4 14
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Pirate"
	npc
		personality heroic waiting
		government Syndicate
		fleet
			names "syndicate small"
			variant
				"Quicksilver (Scanner)"
	npc
		distance 5
		personality heroic waiting
		government Syndicate
		fleet
			names "syndicate small"
			variant
				"Quicksilver (Scanner)"
	npc
		distance 4
		personality heroic waiting
		government Syndicate
		fleet
			names "syndicate small"
			variant
				"Quicksilver (Scanner)"
	npc
		distance 3
		personality heroic waiting
		government Syndicate
		fleet
			names "syndicate small"
			variant
				"Quicksilver (Scanner)"
	npc
		system destination
		distance 1
		personality heroic waiting
		government Syndicate
		fleet
			names "syndicate small"
			variant
				"Quicksilver (Scanner)"
	npc
		system destination
		distance 1
		personality heroic waiting
		government Syndicate
		fleet
			names "syndicate small"
			variant
				"Quicksilver (Scanner)"
	npc
		system destination
		personality heroic staying
		government Syndicate
		fleet
			names "syndicate small"
			variant
				"Quicksilver (Scanner)" 2
	on complete
		payment 200000 1000
		dialog "You land outside of the main city to avoid any chances of your passenger being seen. They grab their things and make their way off of your ship after paying you <payment>."

mission "Highly Wanted Passenger (South)"
	name "Galactic criminal to <planet>"
	job
	repeat
	infiltrating
	description "This criminal is wanted by every law enforcement agency in the galaxy and needs safe transport to <destination> with their <cargo>. The payment is high at an amazing <payment>, but transporting such a person could lead to trouble."
	passengers 1
	cargo "prototype technology" 1
		illegal 300000 `Law enforcement rush their way onto your ship through the airlocks, suited head to toe in armor and armed to the teeth. Your passenger is quickly made to surrender and is hauled off in cuffs. The officers consider detaining you as well, but eventually decide to only fine you to reduce the trouble they have to go through.`
		stealth
	to offer
		random < 15
		"reputation: Pirate" > 10
		"combat rating" > 3000
	source
		government "Pirate"
		attributes "south pirate"
	destination
		distance 4 14
		government "Republic" "Free Worlds" "Syndicate" "Neutral" "Pirate"
	npc
		personality heroic waiting
		government Militia
		fleet
			names "militia"
			variant
				"Bastion (Scanner)"
	npc
		distance 5
		personality heroic waiting
		government Militia
		fleet
			names "militia"
			variant
				"Bastion (Scanner)"
	npc
		distance 4
		personality heroic waiting
		government Militia
		fleet
			names "militia"
			variant
				"Bastion (Scanner)"
	npc
		distance 3
		personality heroic waiting
		government Militia
		fleet
			names "militia"
			variant
				"Bastion (Scanner)"
	npc
		system destination
		distance 1
		personality heroic waiting
		government Militia
		fleet
			names "militia"
			variant
				"Bastion (Scanner)"
	npc
		system destination
		distance 1
		personality heroic waiting
		government Militia
		fleet
			names "militia"
			variant
				"Bastion (Scanner)"
	npc
		system destination
		personality heroic staying
		government Militia
		fleet
			names "militia"
			variant
				"Bastion (Scanner)" 2
	on complete
		payment 200000 1000
		dialog "You land outside of the main city to avoid any chances of your passenger being seen. They grab their things and make their way off of your ship after paying you <payment>."

mission "Slave Transport [0]"
	name "Transfer slaves to <planet>"
	job
	repeat
	description "A pirate on <planet> has bought slaves from a local warlord. Transfer these <bunks> slaves and <cargo> to <destination> for <payment>. Slavery is punishable by death throughout the galaxy, so this may be a dangerous job to take."
	passengers 2 10 .9
	cargo "slave food" 1
		illegal -1
	to offer
		random < 25
		"reputation: Pirate" > 0
		"combat rating" > 1100
	source
		government "Pirate"
	destination
		distance 3 30
		government "Pirate"
	on complete
		payment 75000 400
		dialog "After landing on <planet>, the pirates move the <bunks> slaves from your ship and pay you <payment>."

mission "Slave Transport [1]"
	name "Transfer slaves to <planet>"
	job
	repeat
	description "A pirate on <planet> has bought slaves from a local warlord. Transfer these <bunks> slaves and <cargo> to <destination> for <payment>. Slavery is punishable by death throughout the galaxy, so this may be a dangerous job to take."
	passengers 2 10 .9
	cargo "slave food" 1
		illegal -1
	to offer
		random < 25
		"reputation: Pirate" > 0
		"combat rating" > 1100
	source
		government "Pirate"
	destination
		distance 3 30
		government "Pirate"
	on complete
		payment 75000 400
		dialog "After landing on <planet>, the pirates move the <bunks> slaves from your ship and pay you <payment>."

mission "Slave Transport [2]"
	name "Transfer slaves to <planet>"
	job
	repeat
	description "A pirate on <planet> has bought slaves from a local warlord. Transfer these <bunks> slaves and <cargo> to <destination> for <payment>. Slavery is punishable by death throughout the galaxy, so this may be a dangerous job to take."
	passengers 2 10 .9
	cargo "slave food" 1
		illegal -1
	to offer
		random < 25
		"reputation: Pirate" > 0
		"combat rating" > 1100
	source
		government "Pirate"
	destination
		distance 3 30
		government "Pirate"
	on complete
		payment 75000 400
		dialog "After landing on <planet>, the pirates move the <bunks> slaves from your ship and pay you <payment>."

mission "Bulk Slave Transport [0]"
	name "Transfer slaves to <planet>"
	job
	repeat
	description "A pirate on <planet> has bought slaves from a local warlord. Transfer these <bunks> slaves and <cargo> to <destination> for <payment>. Slavery is punishable by death throughout the galaxy, so this may be a dangerous job to take."
	passengers 10 4 .1
	cargo "slave food" 1
		illegal -1
	to offer
		random < 15
		"reputation: Pirate" > 0
		"combat rating" > 3000
	source
		government "Pirate"
	destination
		distance 3 30
		government "Pirate"
	on complete
		payment 100000 400
		dialog "After landing on <planet>, the pirates move the <bunks> slaves from your ship and pay you <payment>."

mission "Bulk Slave Transport [1]"
	name "Transfer slaves to <planet>"
	job
	repeat
	description "A pirate on <planet> has bought slaves from a local warlord. Transfer these <bunks> slaves and <cargo> to <destination> for <payment>. Slavery is punishable by death throughout the galaxy, so this may be a dangerous job to take."
	passengers 10 4 .1
	cargo "slave food" 1
		illegal -1
	to offer
		random < 15
		"reputation: Pirate" > 0
		"combat rating" > 3000
	source
		government "Pirate"
	destination
		distance 3 30
		government "Pirate"
	on complete
		payment 100000 400
		dialog "After landing on <planet>, the pirates move the <bunks> slaves from your ship and pay you <payment>."

mission "Mercenary Job (Medium, North, Dangerous Origin)"
	name "Protection to <planet>"
	job
	repeat
	description "The captain of the <npc> will pay you <payment> to help them escape local law enforcement and reach <destination> by <date>."
	deadline 10
	to offer
		random < 40
		"combat rating" > 400
		"reputation: Pirate" > 0
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes frontier north
	destination
		government "Pirate"
		attributes "north pirate"
		distance 3 4
	npc
		personality waiting
		government Republic
		fleet "Small Republic"
	npc
		system destination
		distance 1
		personality waiting
		government Republic
		fleet "Small Republic"
	npc accompany save
		government Pirate
		personality escort
		fleet
			names "pirate"
			variant
				"Headhunter"
			variant
				"Headhunter (Particle)"
			variant
				"Raven (Afterburner)"
			variant
				"Raven (Heavy)"
			variant
				"Corvette"
			variant
				"Corvette (Missile)"
			variant
				"Corvette (Speedy)"
	on complete
		payment 180000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort Illegal Cargo (Large, North, Dangerous Path)"
	name "Protect cargo to <planet>"
	job
	repeat
	description "The captain of the <npc> will pay you <payment> to escort them and their illegal cargo safely through law enforced space to reach <destination> by <date>."
	deadline 12
	to offer
		random < 30
		"combat rating" > 1100
		"reputation: Pirate" > 0
	source
		government Republic "Free Worlds" Syndicate Neutral Pirate
		attributes frontier north "north pirate"
		distance 3 6
	destination
		government "Pirate"
		attributes "north pirate"
	npc
		system destination
		personality staying
		government Republic
		fleet "Large Republic"
	npc accompany save
		government Pirate
		personality escort
		fleet
			names "pirate"
			variant 3
				"Corvette"
			variant 3
				"Corvette (Missile)"
			variant 3
				"Corvette (Speedy)"
			variant 2
				"Firebird"
			variant 2
				"Firebird (Missile)"
			variant 2
				"Firebird (Plasma)"
			variant 1
				"Leviathan"
	on complete
		payment 240000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort Stolen Vessel (Extra Large, North, Dangerous Path)"
	name "Protect ship to <planet>"
	job
	repeat
	description "The captain of the <npc> will pay you <payment> to escort them and their stolen vessel safely through law enforced space to reach <destination> by <date>."
	deadline 12
	to offer
		random < 15
		"combat rating" > 3000
		"reputation: Pirate" > 0
	source
		government Republic "Free Worlds" Syndicate Neutral Pirate
		attributes frontier north "north pirate"
	destination
		government "Pirate"
		attributes "north pirate"
		distance 3 6
	npc
		system destination
		personality staying
		government Republic
		fleet "Small Republic"
	npc
		system destination
		personality staying
		government Republic
		fleet "Large Republic"
	npc accompany save
		government Pirate
		personality escort
		fleet
			names "pirate"
			variant 6
				"Leviathan"
				"Hauler II"
			variant 4
				"Leviathan (Laser)"
				"Hauler"
			variant 4
				"Leviathan (Heavy)"
				"Freighter"
			variant 1
				"Bactrian"
				"Shuttle"
	on complete
		payment 375000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Mercenary Job (Medium, Core, Dangerous Origin)"
	name "Protection to <planet>"
	job
	repeat
	description "The captain of the <npc> will pay you <payment> to help them escape local law enforcement and reach <destination> by <date>."
	deadline 10
	to offer
		random < 40
		"combat rating" > 400
		"reputation: Pirate" > 0
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes core
	destination
		government "Pirate"
		attributes "core pirate"
		distance 3 4
	npc
		personality waiting
		government Syndicate
		fleet "Small Syndicate"
	npc
		system destination
		distance 1
		personality waiting
		government Syndicate
		fleet "Small Syndicate"
	npc accompany save
		government Pirate
		personality escort
		fleet
			names "pirate"
			variant 1
				"Headhunter"
			variant 1
				"Headhunter (Particle)"
			variant 1
				"Quicksilver"
			variant 1
				"Quicksilver (Proton)"
	on complete
		payment 180000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort Illegal Cargo (Large, Core, Dangerous Path)"
	name "Protect cargo to <planet>"
	job
	repeat
	description "The captain of the <npc> will pay you <payment> to escort them and their illegal cargo safely through law enforced space to reach <destination> by <date>."
	deadline 12
	to offer
		random < 30
		"combat rating" > 1100
		"reputation: Pirate" > 0
	source
		government Republic "Free Worlds" Syndicate Neutral Pirate
		attributes core "core pirate"
		distance 3 6
	destination
		government "Pirate"
		attributes "core pirate"
	npc
		system destination
		personality staying
		government Syndicate
		fleet "Large Syndicate"
	npc accompany save
		government Pirate
		personality escort
		fleet
			names "pirate"
			variant 3
				"Quicksilver (Proton)" 3
			variant 2
				"Manta (Proton)"
			variant 2
				"Manta"
			variant 1
				"Splinter" 2
			variant 1
				"Splinter (Laser)" 2
	on complete
		payment 240000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort Stolen Vessel (Extra Large, Core, Dangerous Path)"
	name "Protect ship to <planet>"
	job
	repeat
	description "The captain of the <npc> will pay you <payment> to escort them and their stolen vessel safely through law enforced space to reach <destination> by <date>."
	deadline 12
	to offer
		random < 15
		"combat rating" > 3000
		"reputation: Pirate" > 0
	source
		government Republic "Free Worlds" Syndicate Neutral Pirate
		attributes core "core pirate"
	destination
		government "Pirate"
		attributes "core pirate"
		distance 3 6
	npc
		system destination
		personality staying
		government Syndicate
		fleet "Small Syndicate"
	npc
		system destination
		personality staying
		government Syndicate
		fleet "Large Syndicate"
	npc accompany save
		government Pirate
		personality escort
		fleet
			names "pirate"
			variant 4
				"Firebird"
				"Argosy"
			variant 4
				"Firebird (Plasma)"
				"Bounder"
			variant 4
				"Firebird (Missile)"
				"Quicksilver"
			variant 2
				"Falcon"
				"Freighter"
			variant 2
				"Falcon (Laser)"
				"Freighter"
			variant 1
				"Falcon (Heavy)"
				"Heavy Shuttle"
	on complete
		payment 375000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Mercenary Job (Medium, South, Dangerous Origin)"
	name "Protection to <planet>"
	job
	repeat
	description "The captain of the <npc> will pay you <payment> to help them escape local law enforcement and reach <destination> by <date>."
	deadline 10
	to offer
		random < 40
		"combat rating" > 400
		"reputation: Pirate" > 0
	source
		government Republic "Free Worlds" Syndicate Neutral
		attributes south
	destination
		government "Pirate"
		attributes "south pirate"
		distance 3 4
	npc
		personality waiting
		government Militia
		fleet "Small Militia"
	npc
		system destination
		distance 1
		personality waiting
		government Militia
		fleet "Small Militia"
	npc accompany save
		government Pirate
		personality escort
		fleet
			names "pirate"
			variant 1
				"Clipper"
			variant 1
				"Clipper (Speedy)"
			variant 1
				"Clipper (Heavy)"
			variant 1
				"Modified Argosy"
	on complete
		payment 180000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort Illegal Cargo (Large, South, Dangerous Path)"
	name "Protect cargo to <planet>"
	job
	repeat
	description "The captain of the <npc> will pay you <payment> to escort them and their illegal cargo safely through law enforced space to reach <destination> by <date>."
	deadline 12
	to offer
		random < 30
		"combat rating" > 1100
		"reputation: Pirate" > 0
	source
		government Republic "Free Worlds" Syndicate Neutral Pirate
		attributes south "south pirate"
		distance 3 6
	destination
		government "Pirate"
		attributes "south pirate"
	npc
		system destination
		personality staying
		government Militia
		fleet "Large Militia"
	npc accompany save
		government Pirate
		personality escort
		fleet
			names "pirate"
			variant 2
				"Modified Argosy"
			variant 2
				"Modified Argosy (Heavy)"
			variant 2
				"Modified Argosy (Blaster)"
			variant 1
				"Bastion"
			variant 1
				"Bastion (Laser)"
			variant 1
				"Bastion (Heavy)"
	on complete
		payment 240000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Escort Stolen Vessel (Extra Large, South, Dangerous Path)"
	name "Protect ship to <planet>"
	job
	repeat
	description "The captain of the <npc> will pay you <payment> to escort them and their stolen vessel safely through law enforced space to reach <destination> by <date>."
	deadline 12
	to offer
		random < 15
		"combat rating" > 3000
		"reputation: Pirate" > 0
	source
		government Republic "Free Worlds" Syndicate Neutral Pirate
		attributes south "south pirate"
	destination
		government "Pirate"
		attributes "south pirate"
		distance 3 6
	npc
		system destination
		personality staying
		government Militia
		fleet "Small Militia"
	npc
		system destination
		personality staying
		government Militia
		fleet "Large Militia"
	npc accompany save
		government Pirate
		personality escort
		fleet
			names "pirate"
			variant 4
				"Bastion"
				"Blackbird"
			variant 4
				"Bastion (Laser)"
				"Clipper"
			variant 4
				"Bastion (Heavy)"
				"Bounder"
			variant 2
				"Falcon"
				"Hauler"
			variant 2
				"Falcon (Laser)"
				"Freighter"
			variant 1
				"Falcon (Heavy)"
				"Heavy Shuttle"
	on complete
		payment 375000
		dialog "The captain of the <npc> thanks you for escorting them safely, and pays you <payment>."
	on visit
		dialog "You have reached <planet>, but you left the <npc> behind! Better depart and wait for them to arrive in this star system."

mission "Eliminating Law Enforcement (North, Small)"
	name "Navy near <system>"
	repeat
	job
	description "A Navy fleet near the <system> system has halted our raids. Destroy them and return to <planet> for a payment of <payment>."
	to offer
		random < 25
		"combat rating" > 1100
	source
		government "Pirate"
		attributes "north pirate"
	npc kill
		personality heroic staying target
		government "Republic"
		system
			distance 1 3
		fleet "Small Republic"
		fleet "Small Republic"
		dialog "The fleet has been eliminated. You can claim the bounty payment by returning to <destination>."
	on complete
		payment 250000
		dialog "The pirates of <planet> gratefully pay you <payment> for eliminating the Navy fleet."

mission "Eliminating Law Enforcement (North, Large)"
	name "Navy near <system>"
	repeat
	job
	description "A large Navy fleet near the <system> system has halted our raids. Destroy them and return to <planet> for a payment of <payment>."
	to offer
		random < 15
		"combat rating" > 3000
	source
		government "Pirate"
		attributes "north pirate"
	npc kill
		personality heroic staying target
		government "Republic"
		system
			distance 1 3
		fleet "Large Republic"
		fleet "Small Republic"
		fleet "Small Republic"
		dialog "The fleet has been eliminated. You can claim the bounty payment by returning to <destination>."
	on complete
		payment 400000
		dialog "The pirates of <planet> gratefully pay you <payment> for eliminating the Navy fleet."

mission "Eliminating Law Enforcement (Core, Small)"
	name "Syndicate near <system>"
	repeat
	job
	description "A Syndicate fleet near the <system> system has halted our raids. Destroy them and return to <planet> for a payment of <payment>."
	to offer
		random < 25
		"combat rating" > 1100
	source
		government "Pirate"
		attributes "core pirate"
	npc kill
		personality heroic staying target
		government "Syndicate"
		system
			distance 1 3
		fleet "Small Syndicate"
		fleet "Small Syndicate"
		dialog "The fleet has been eliminated. You can claim the bounty payment by returning to <destination>."
	on complete
		payment 250000
		dialog "The pirates of <planet> gratefully pay you <payment> for eliminating the Syndicate fleet."

mission "Eliminating Law Enforcement (Core, Large)"
	name "Syndicate near <system>"
	repeat
	job
	description "A large Syndicate fleet near the <system> system has halted our raids. Destroy them and return to <planet> for a payment of <payment>."
	to offer
		random < 15
		"combat rating" > 3000
	source
		government "Pirate"
		attributes "core pirate"
	npc kill
		personality heroic staying target
		government "Syndicate"
		system
			distance 1 3
		fleet "Large Syndicate"
		fleet "Small Syndicate"
		fleet "Small Syndicate"
		dialog "The fleet has been eliminated. You can claim the bounty payment by returning to <destination>."
	on complete
		payment 400000
		dialog "The pirates of <planet> gratefully pay you <payment> for eliminating the Syndicate fleet."

mission "Eliminating Law Enforcement (South, Small)"
	name "Militia near <system>"
	repeat
	job
	description "A militia fleet near the <system> system has halted our raids. Destroy them and return to <planet> for a payment of <payment>."
	to offer
		random < 25
		"combat rating" > 1100
	source
		government "Pirate"
		attributes "south pirate"
	npc kill
		personality heroic staying target
		government "Militia"
		system
			distance 1 3
		fleet "Small Militia"
		fleet "Small Militia"
		dialog "The fleet has been eliminated. You can claim the bounty payment by returning to <destination>."
	on complete
		payment 250000
		dialog "The pirates of <planet> gratefully pay you <payment> for eliminating the militia fleet."

mission "Eliminating Law Enforcement (South, Large)"
	name "Militia near <system>"
	repeat
	job
	description "A large militia fleet near the <system> system has halted our raids. Destroy them and return to <planet> for a payment of <payment>."
	to offer
		random < 15
		"combat rating" > 3000
	source
		government "Pirate"
		attributes "south pirate"
	npc kill
		personality heroic staying target
		government "Militia"
		system
			distance 1 3
		fleet "Large Militia"
		fleet "Small Militia"
		fleet "Small Militia"
		dialog "The fleet has been eliminated. You can claim the bounty payment by returning to <destination>."
	on complete
		payment 400000
		dialog "The pirates of <planet> gratefully pay you <payment> for eliminating the militia fleet."

mission "Eliminating Competition (North, Small)"
	name "Competition near <system>"
	description "A small rival gang is causing trouble near the <system> system. Take them out and return to <planet> for a payment of <payment>."
	repeat
	job
	to offer
		random < 20
		"combat rating" > 400
	source
		government "Pirate"
		attributes "north pirate"
	npc kill
		personality heroic staying target
		government Bounty
		system
			distance 1 2
		fleet "Small Northern Pirates"
		fleet "Small Northern Pirates"
		fleet "Small Northern Pirates"
		fleet "Small Northern Pirates"
		dialog "The fleet has been eliminated. You can claim the bounty payment by returning to <destination>."
	on complete
		payment 500000
		dialog "The pirates of <planet> gratefully pay you <payment> for eliminating the rival gang."

mission "Eliminating Competition (North, Large)"
	name "Competition near <system>"
	description "A large rival gang is gaining too much power. Their leader is currently near the <system> system. Take them and their escorts out and return to <planet> for a payment of <payment>."
	repeat
	job
	to offer
		random < 10
		"combat rating" > 1100
	source
		government "Pirate"
		attributes "north pirate"
	npc kill
		personality heroic staying target
		government Bounty
		system
			distance 1 3
		fleet "Large Northern Pirates"
		fleet "Large Northern Pirates"
		fleet "Small Northern Pirates"
		fleet "Small Northern Pirates"
		dialog "The fleet has been eliminated. You can claim the bounty payment by returning to <destination>."
	on complete
		payment 750000
		dialog "The pirates of <planet> gratefully pay you <payment> for eliminating the rival gang."

mission "Eliminating Competition (Core, Small)"
	name "Competition near <system>"
	description "A small rival gang is causing trouble near the <system> system. Take them out and return to <planet> for a payment of <payment>."
	repeat
	job
	to offer
		random < 20
		"combat rating" > 400
	source
		government "Pirate"
		attributes "core pirate"
	npc kill
		personality heroic staying target
		government Bounty
		system
			distance 1 2
		fleet "Small Core Pirates"
		fleet "Small Core Pirates"
		fleet "Small Core Pirates"
		fleet "Small Core Pirates"
		dialog "The fleet has been eliminated. You can claim the bounty payment by returning to <destination>."
	on complete
		payment 500000
		dialog "The pirates of <planet> gratefully pay you <payment> for eliminating the rival gang."

mission "Eliminating Competition (Core, Large)"
	name "Competition near <system>"
	description "A large rival gang is gaining too much power. Their leader is currently near the <system> system. Take them and their escorts out and return to <planet> for a payment of <payment>."
	repeat
	job
	to offer
		random < 10
		"combat rating" > 1100
	source
		government "Pirate"
		attributes "core pirate"
	npc kill
		personality heroic staying target
		government Bounty
		system
			distance 1 3
		fleet "Large Core Pirates"
		fleet "Large Core Pirates"
		fleet "Small Core Pirates"
		fleet "Small Core Pirates"
		dialog "The fleet has been eliminated. You can claim the bounty payment by returning to <destination>."
	on complete
		payment 750000
		dialog "The pirates of <planet> gratefully pay you <payment> for eliminating the rival gang."

mission "Eliminating Competition (South, Small)"
	name "Competition near <system>"
	description "A small rival gang is causing trouble near the <system> system. Take them out and return to <planet> for a payment of <payment>."
	repeat
	job
	to offer
		random < 20
		"combat rating" > 400
	source
		government "Pirate"
		attributes "south pirate"
	npc kill
		personality heroic staying target
		government Bounty
		system
			distance 1 2
		fleet "Small Southern Pirates"
		fleet "Small Southern Pirates"
		fleet "Small Southern Pirates"
		fleet "Small Southern Pirates"
		dialog "The fleet has been eliminated. You can claim the bounty payment by returning to <destination>."
	on complete
		payment 500000
		dialog "The pirates of <planet> gratefully pay you <payment> for eliminating the rival gang."

mission "Eliminating Competition (South, Large)"
	name "Competition near <system>"
	description "A large rival gang is gaining too much power. Their leader is currently near the <system> system. Take them and their escorts out and return to <planet> for a payment of <payment>."
	repeat
	job
	to offer
		random < 10
		"combat rating" > 1100
	source
		government "Pirate"
		attributes "south pirate"
	npc kill
		personality heroic staying target
		government Bounty
		system
			distance 1 3
		fleet "Large Southern Pirates"
		fleet "Large Southern Pirates"
		fleet "Small Southern Pirates"
		fleet "Small Southern Pirates"
		dialog "The fleet has been eliminated. You can claim the bounty payment by returning to <destination>."
	on complete
		payment 750000
		dialog "The pirates of <planet> gratefully pay you <payment> for eliminating the rival gang."

mission "Raid on Merchants (North)"
	name "Merchants near <system>"
	repeat
	job
	description "A merchant fleet has been spotted near the <system>. Join in destroying them and return to <planet> for a cut of the loot (<payment>)."
	to offer
		random < 50
		"combat rating" > 150
		"reputation: Pirate" > 0
	source
		government "Pirate"
		attributes "north pirate"
	npc
		personality plunders escort
		government "Pirate"
		fleet "Small Northern Pirates"
	npc kill
		personality heroic staying target
		government "Merchant"
		system
			distance 1 3
		fleet "Small Northern Merchants"
		fleet "Small Northern Merchants"
		fleet "Large Northern Merchants"
		dialog "The merchants have been eliminated. Return to <destination> for your cut of the loot."
	on complete
		payment 150000
		dialog "After counting up the loot from the destroyed merchant fleet, you are given your cut. <payment>"

mission "Raid on Merchants (Core)"
	name "Merchants near <system>"
	repeat
	job
	description "A merchant fleet has been spotted near the <system>. Join in destroying them and return to <planet> for a cut of the loot (<payment>)."
	to offer
		random < 50
		"combat rating" > 150
		"reputation: Pirate" > 0
	source
		government "Pirate"
		attributes "core pirate"
	npc
		personality plunders escort
		government "Pirate"
		fleet "Small Core Pirates"
	npc kill
		personality heroic staying target
		government "Merchant"
		system
			distance 1 3
		fleet "Small Core Merchants"
		fleet "Small Core Merchants"
		fleet "Large Core Merchants"
		dialog "The merchants have been eliminated. Return to <destination> for your cut of the loot."
	on complete
		payment 150000
		dialog "After counting up the loot from the destroyed merchant fleet, you are given your cut. <payment>"

mission "Raid on Merchants (South)"
	name "Merchants near <system>"
	repeat
	job
	description "A merchant fleet has been spotted near the <system>. Join in destroying them and return to <planet> for a cut of the loot (<payment>)."
	to offer
		random < 50
		"combat rating" > 150
		"reputation: Pirate" > 0
	source
		government "Pirate"
		attributes "south pirate"
	npc
		personality plunders escort
		government "Pirate"
		fleet "Small Southern Pirates"
	npc kill
		personality heroic staying target
		government "Merchant"
		system
			distance 1 3
		fleet "Small Southern Merchants"
		fleet "Small Southern Merchants"
		fleet "Large Southern Merchants"
		dialog "The merchants have been eliminated. Return to <destination> for your cut of the loot."
	on complete
		payment 150000
		dialog "After counting up the loot from the destroyed merchant fleet, you are given your cut. <payment>"

mission "Northern Pirate Defense"
	name "Defend <planet>"
	repeat
	minor
	description "Local Navy forces are attacking the <destination>! Defeat them to defend anarchy!"
	to offer
		random < 20
		"reputation: Pirate" >= 0
	source
		government "Pirate"
		attributes "north pirate"
	npc evade
		personality heroic staying waiting
		government "Republic"
		fleet "Large Republic"
		fleet "Large Republic"
		dialog "The Navy fleets have been eliminated. Return to <destination>."
	npc
		personality plunders staying
		government "Pirate"
		fleet "Large Northern Pirates"
		fleet "Small Northern Pirates"
	on offer
		conversation
			`Suddenly you hear raised voices and shouting outside: "We are under attack! <planet> is under attack by the militia! We need every combat-worthy ship to join in the defenses!" This could also be an easy way to get yourself killed, and you can't even guarentee that you will be paid for your work.`
			choice
				"	(Stay here until the fight is over.)"
					decline
				"	(Join the defense fleet.)"
			"Local pirate forces are preparing to repel the militia attack. You join them, and take off together..."
				launch
	on complete
		payment 200000
		dialog "Many locals of <planet> thank you and collectively pay you <payment> for helping to drive off the Navy."

mission "Core Pirate Defense"
	name "Defend <planet>"
	repeat
	minor
	description "Local Syndicate forces are attacking the <destination>! Defeat them to defend anarchy!"
	to offer
		random < 20
		"reputation: Pirate" >= 0
	source
		government "Pirate"
		attributes "core pirate"
	npc evade
		personality heroic staying waiting
		government "Syndicate"
		fleet "Small Syndicate"
		fleet "Large Syndicate"
		fleet "Large Syndicate"
		dialog "The Syndicate fleets have been eliminated. Return to <destination>."
	npc
		personality plunders staying
		government "Pirate"
		fleet "Small Core Pirates"
		fleet "Small Core Pirates"
	on offer
		conversation
			`Suddenly you hear raised voices and shouting outside: "We are under attack! <planet> is under attack by the Syndicate! We need every combat-worthy ship to join in the defenses!" This could also be an easy way to get yourself killed, and you can't even guarentee that you will be paid for your work.`
			choice
				"	(Stay here until the fight is over.)"
					decline
				"	(Join the defense fleet.)"
			"Local pirate forces are preparing to repel the Syndicate attack. You join them, and take off together..."
				launch
	on complete
		payment 200000
		dialog "Many locals of <planet> thank you and collectively pay you <payment> for helping to drive off the Navy."

mission "Southern Pirate Defense"
	name "Defend <planet>"
	repeat
	minor
	description "Local militia forces are attacking the <destination>! Defeat them to defend anarchy!"
	to offer
		random < 20
		"reputation: Pirate" >= 0
	source
		government "Pirate"
		attributes "south pirate"
	npc evade
		personality heroic staying waiting
		government "Militia"
		fleet "Small Militia"
		fleet "Large Militia"
		fleet "Large Militia"
		dialog "The militia fleets have been eliminated. Return to <destination>."
	npc
		personality plunders staying
		government "Pirate"
		fleet "Small Southern Pirates"
		fleet "Small Southern Pirates"
	on offer
		conversation
			`Suddenly you hear raised voices and shouting outside: "We are under attack! <planet> is under attack by the militia! We need every combat-worthy ship to join in the defenses!" This could also be an easy way to get yourself killed, and you can't even guarentee that you will be paid for your work.`
			choice
				"	(Stay here until the fight is over.)"
					decline
				"	(Join the defense fleet.)"
			"Local pirate forces are preparing to repel the militia attack. You join them, and take off together..."
				launch
	on complete
		payment 200000
		dialog "Many locals of <planet> thank you and collectively pay you <payment> for helping to drive off the Navy."

outfit "Secret Cargo"
	category "Special"
	cost 0
	thumbnail "outfit/unknown"
	"mass" 1
	description "Cargo stolen from a merchant ship which has caught the interest of a pirate warlord."

mission "Cargo Theft (North)"
	name "Convoy near <system>"
	job
	repeat
	description `A merchant convoy has been spotted near the <system> system. A local warlord is interested in having the cargo on the <npc>. Plunder it and return to <planet> for payment of <payment>.`
	to offer
		random < 15
		"combat rating" > 3000
	source
		government Pirate
		attributes "north pirate"
	npc
		personality staying heroic target
		government "Merchant"
		system
			distance 2 3
		fleet
			names "civilian"
			variant
				"Freighter (Secret Cargo)"
				"Corvette" 2
			variant
				"Freighter (Secret Cargo)"
				"Firebird" 2
			variant
				"Freighter (Secret Cargo)"
				"Leviathan"
	on visit
		dialog "You land on <planet>, but you don't have the secret cargo! Return to the <npc> and bring the cargo back to <planet>."
	on complete
		outfit "Secret Cargo" -1
		payment 1500000
		dialog "The pirates of <planet> take the secret cargo from your cargo hold and pay you <payment>."

mission "Cargo Theft (Core)"
	name "Convoy near <system>"
	job
	repeat
	description `A merchant convoy has been spotted near the <system> system. A local warlord is interested in having the cargo on the <npc>. Plunder it and return to <planet> for payment of <payment>.`
	to offer
		random < 15
		"combat rating" > 3000
	source
		government Pirate
		attributes "core pirate"
	npc
		personality staying heroic target
		government "Merchant"
		system
			distance 2 3
		fleet
			names "civilian"
			variant
				"Freighter (Secret Cargo)"
				"Quicksilver" 2
			variant
				"Freighter (Secret Cargo)"
				"Splinter" 2
			variant
				"Freighter (Secret Cargo)"
				"Vanguard"
	on visit
		dialog "You land on <planet>, but you don't have the secret cargo! Return to the <npc> and bring the cargo back to <planet>."
	on complete
		outfit "Secret Cargo" -1
		payment 1500000
		dialog "The pirates of <planet> take the secret cargo from your cargo hold and pay you <payment>."

mission "Cargo Theft (South)"
	name "Convoy near <system>"
	job
	repeat
	description `A merchant convoy has been spotted near the <system> system. A local warlord is interested in having the cargo on the <npc>. Plunder it and return to <planet> for payment of <payment>.`
	to offer
		random < 15
		"combat rating" > 3000
	source
		government Pirate
		attributes "south pirate"
	npc
		personality staying heroic target
		government "Merchant"
		system
			distance 2 3
		fleet
			names "civilian"
			variant
				"Freighter (Secret Cargo)"
				"Bastion" 2
			variant
				"Freighter (Secret Cargo)"
				"Blackbird" 2
			variant
				"Freighter (Secret Cargo)"
				"Falcon"
	on visit
		dialog "You land on <planet>, but you don't have the secret cargo! Return to the <npc> and bring the cargo back to <planet>."
	on complete
		outfit "Secret Cargo" -1
		payment 1500000
		dialog "The pirates of <planet> take the secret cargo from your cargo hold and pay you <payment>."

#must destroy hunters and land to fail
mission "Hunted by State [0]"
	invisible
	landing
	repeat
	destination Earth
	source
		government "Republic" "Syndicate" "Free Worlds" "Neutral" "Pirate"
	to offer
		random > 90
		or
			not "chosen sides"
			has "main plot completed"
		or
			"reputation: Republic" < -10
			"reputation: Syndicate" < -10
			"reputation: Free Worlds" < -10
	to complete
		never
	npc save
		fleet "Bounty Hunters"
		personality heroic nemesis plunders
		government "Bounty Hunter"
		system
			distance 5 5

mission "Hunted by State [1]"
	invisible
	landing
	repeat
	destination Earth
	source
		government "Republic" "Syndicate" "Free Worlds" "Neutral" "Pirate"
	to offer
		random > 95
		or
			not "chosen sides"
			has "main plot completed"
		or
			"reputation: Republic" < -200
			"reputation: Syndicate" < -200
			"reputation: Free Worlds" < -200
	to complete
		never
	npc save
		fleet "Hired Guns"
		personality heroic nemesis plunders
		government "Bounty Hunter"
		system
			distance 5 5
